package com.cnhis.drgs.core.xcode.ftl;


import com.cnhis.drgs.core.model.Column;
import com.cnhis.drgs.core.model.TableView;

import java.util.List;

public class Model extends FtlTemplate {

    public Model(String projectName, String basePackage, String mouduleName, boolean reserveSchema, TableView tableView, List<Column> columns) {
        super(projectName, basePackage, mouduleName, reserveSchema, tableView, columns);
    }

    public String getTemplateName() {
        return "model.ftl";
    }

    public String getOutPutPath() {
        return getProjectName() + "/src/main/java/" + getBasePackage().replace(".", "/") + "/model/" + getMouduleName() + "/" + getClassName(getTableView().getTable_name()) + ".java";
    }

}
